package com.yunquan.ohana.ui.verifyEmail

import android.os.Bundle
import android.view.View
import com.yunquan.ohana.BR
import com.yunquan.ohana.R
import com.yunquan.ohana.base.ui.BaseActivity
import com.yunquan.ohana.databinding.ActivityVerifyEmailBinding

class VerifyEmailActivity : BaseActivity<ActivityVerifyEmailBinding, VerifyEmailViewModel>() {
    override fun initContentView(savedInstanceState: Bundle?): Int {
        return R.layout.activity_verify_email
    }

    override fun initVariableId(): Int {
        return BR.verifyEmailViewModel
    }

    override fun initParam() {
        super.initParam()
        window.statusBarColor = resources.getColor(R.color.background)
        window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
    }

    override fun initData(savedInstanceState: Bundle?) {
        super.initData(savedInstanceState)
        val bundle = intent.extras
        bundle?.let {
            val email = it.getString("email")
            viewModel!!.email.set(email)
        }
    }

    override fun initViewObservable() {
        super.initViewObservable()
    }
}